package chapter1.dataabstraction.example;

import edu.princeton.cs.algs4.In;
import edu.princeton.cs.algs4.StdIn;

/**
 * @author quanlinlin on 2018/11/17 17:36.
 * @version 1.0
 */
public class StaticSETofIntsTest {

    public static void main(String[] args) {
        int[] w = new In(args[0]).readAllInts();
        StaticSETofInts set = new StaticSETofInts(w);
        while (!StdIn.isEmpty()) {
            int key = StdIn.readInt();
            if (!set.contains(key)) {
                System.out.println(key);
            }
        }
    }

}